import request from '@/utils/request'

// 查询对账列表
export function listT(query) {
  return request({
    url: '/cost/account/list',
    method: 'get',
    params: query
  })
}

// 查询对账详细
export function getT(id) {
  return request({
    url: '/cost/account/' + id,
    method: 'get'
  })
}

// 新增对账
export function addT(data) {
  return request({
    url: '/cost/account',
    method: 'post',
    data: data
  })
}

// 修改对账
export function updateT(data) {
  return request({
    url: '/cost/account',
    method: 'put',
    data: data
  })
}

// 删除对账
export function delT(id) {
  return request({
    url: '/cost/account/' + id,
    method: 'delete'
  })
}

// 请求对账
export function requestFile(datetime) {
  return request({
    url: '/cost/account/requestFile/'+datetime,
    method: 'get'
  })
}
// 重新对账
export function checkAccount(datetime) {
  return request({
    url: '/cost/account/checkAccount/'+datetime,
    method: 'get'
  })
}
